package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterMingXiShouLiDao;
import com.vf.admin.miaodong.entity.AppMingXiShouLi;
import com.vf.admin.miaodong.service.AfterMingXiShouLiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author anxiang
 * @version 1.0.0
 * @ClassName AfterMingXiShouLiServiceImpl.java
 * @Description 收礼明细
 * @createTime 2021年11月02日 15:32:00
 */
@Service
public class AfterMingXiShouLiServiceImpl implements AfterMingXiShouLiService {

    @Autowired
    AfterMingXiShouLiDao afterMingXiShouLiDao;

    /**
     * 新增或更新
     * @param appMingXiShouLi
     */
    @Override
    public void saveOrUpdate(AppMingXiShouLi appMingXiShouLi) {
        afterMingXiShouLiDao.saveOrUpdate(appMingXiShouLi);
    }

    /**
     * 查找用户收礼明细
     */
    @Override
    public List<AppMingXiShouLi> findList(Integer userid, SplitPageBean splitPageBean) {
        return afterMingXiShouLiDao.findList(userid, splitPageBean);
    }
}